import soxr

class SampleRateConverter:
    def convert(self, input_data: np.ndarray, src_rate: int, dst_rate: int) -> np.ndarray:
        """采样率转换"""
        return soxr.resample(input_data, src_rate, dst_rate)